package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.entity.DailyExpenses;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface DailyExpensesMapper {

    DailyExpenses selectDailyExpensesById(String id);

    List<DailyExpenses> selectAllDailyExpenses();

    void insertDailyExpenses(DailyExpenses dailyExpenses);

    void updateDailyExpenses(DailyExpenses dailyExpenses);

    void deleteDailyExpenses(String id);

    List<DailyExpenses> findDailyExpensesWithPagination(@Param("expenseItem") String expenseItem, @Param("offset") int offset, @Param("pageSize") int pageSize);

    int countDailyExpenses(@Param("expenseItem") String expenseItem);

}
